package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 批量入库表主表
 * @Author: jeecg-boot
 * @Date:   2022-07-22
 * @Version: V1.0
 */
@ApiModel(value="t_flower_tag_in_main对象", description="批量入库表主表")
@Data
@TableName("t_flower_tag_in_main")
public class TFlowerTagInMain2 implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

	/**入库单号*/
    @Excel(name = "入库单号")
    @ApiModelProperty(value = "入库单号")
    private String no;


    @Excel(name = "来源")
    @ApiModelProperty(value = "来源")
    private String ffrom;

    @Excel(name = "采摘人")
    @ApiModelProperty(value = "采摘人")
    private String frompeople;

    @Excel(name = "经销商")
    @ApiModelProperty(value = "经销商")
    private String sealer;


	/**来源基地*/
    @Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源基地")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    private String sourceBase;
    /**来源大棚*/
    @Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源大棚")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    private String sourceGreenhouse;
    /**库房*/
    @Excel(name = "库房", width = 15, dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;
    /**成本中心*/
    @Excel(name = "成本中心", width = 15,dicCode = "ch_cost" )
    @ApiModelProperty(value = "成本中心")
    @Dict(dicCode = "ch_cost" )
    private String cost;

    @Excel(name = "批次", width = 15, needMerge = true)
    @ApiModelProperty(value = "批次")
    private String productionId;

    /**成本中心*/
    @Excel(name = "品种", width = 15,dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "品种")
    @Dict( dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id")
    private String variety;


	/**分拣日期*/
	@Excel(name = "分拣日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "分拣日期")
    private Date sortTime;

    @Excel(name = "账期号", width = 15    )
    @ApiModelProperty(value = "账期号")
    private String period;

    @Excel(name = "账期状态", width = 15  )
    @ApiModelProperty(value = "账期状态")
    private String periodState;

    @Excel(name = "基地负责人审批", width = 15  )
    @ApiModelProperty(value = "基地负责人审批")
    private String baseCadre;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "基地负责人审批日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "基地负责人审批日期")
    private Date baseCadreTime;

    /**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**创建人*/
    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**状态（0正常，1未入库）*/
	@Excel(name = "状态（0正常，1未入库）", width = 15)
    @ApiModelProperty(value = "状态（状态（0申请中，1已入库 ， -2删除 ））")
    private Integer state;
	@Excel(name = "入库方式", width = 15)
    @ApiModelProperty(value = "入库方式（扫码入库，手工入库）")
    private String inType;
}
